/*
 * create:2016年4月17日 下午3:02:16
 * author:wangds  
 */
package com.cxkj.shop.proc.order;

import java.util.Map;

import net.wangds.common.processor.AbstractInputOutputProcessor;
import net.wangds.utilities.lang.StringUtils;

/**
 * .
 * @author wangds
 *
 */
public abstract class AbstractOrderResultSetProc<T> extends AbstractInputOutputProcessor<Map<String, Object>, T> {

  public static String KEY_orderId = "orderId";
  public static String KEY_openId = "openId";
  public static String KEY_wxPayId = "wxPayId";
  public static String KEY_postCode = "postCode";
  public static String KEY_receiverName = "receiverName";
  public static String KEY_address = "address";
  public static String KEY_phone = "phone";
  public static String KEY_createTm = "createTm";
  public static String KEY_payTm = "payTm";
  public static String KEY_postTm = "postTm";
  public static String KEY_finishTm = "finishTm";
  public static String KEY_total = "total";
  public static String KEY_commodityId = "commodityId";
  public static String KEY_price = "price";
  public static String KEY_score = "score";
  public static String KEY_amount = "amount";
  public static String KEY_commodityCode = "commodityCode";
  public static String KEY_commodityName = "commodityName";

  protected static long string2long(String str) {
    if(StringUtils.isBlank(str)){
      return 0;
    }else{
      return Long.parseLong(str);
    }
    
  }

  protected static int string2int(String str) {
    if(StringUtils.isBlank(str)){
      return 0;
    }else{
      return Integer.parseInt(str);
    }
    
  }

  /**
   * The constructor of AbstractOrderResultSetProc.
   * @author wangds 2016年4月17日 下午3:02:16.
   */
  public AbstractOrderResultSetProc() {
    super();
  }

}